package 设计模式.factory;



import java.lang.reflect.Proxy;
import java.util.Scanner;

/**
 * @功能
 * @创建时间 2020/5/30
 */
public class Client {
//    public static void main(String[] args) {
//        String a = "1";

//        Factory factory = new BenchiCarFactory();
//        factory.stamp();
//        Car car = factory.makeCar();
//        car.speed();
//        car.run();
//        car.exterior();
////        car.move();
//        FactoryHander handler = new FactoryHander();
//        Car proxy = (Car) Proxy.newProxyInstance(ClassLoader.getSystemClassLoader(), new Class[]{Factory.class},handler);
//        proxy.exterior();
//    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextLine()) { // 注意 while 处理多个 case
            String a = in.nextLine();
            int len = a.length();
            boolean sStart = false;
            String ps = "[a-zA-Z]";
            String pi = "[0-9]";
            boolean isS = false;
            boolean isI = false;
            boolean canbeMix = false;
            boolean invalid = false;
            for(int i = 0; i < len;i++) {

                char c = a.charAt(i);
                String s = String.valueOf(c);
                isS = s.matches(ps);
                isI = s.matches(pi);
                if(!isS && !isI) {
                    invalid = true;
                    break;
                }
                if(i == 0) {
                    if(isS){
                        sStart = true;
                    } else if(isI) {
                        sStart = false;
                    }
                }else {
                    if(sStart) {
                        if(isS) {
                            canbeMix = true;
                            continue;
                        }
                    }
                    if(!sStart) {
                        if(isI) {
                            invalid = true;
                            break;
                        }
                    }
                }

            }
            if (invalid){
                System.out.println("invalid");
                continue;
            }
            if(sStart){
                if(canbeMix){
                    System.out.println("mix");
                } else {
                    System.out.println("standard");
                }
            } else {
                System.out.println("special");
            }
        }
    }
}
